<?php 
class CabinBookedDates extends DataObject {
	static $db = array(
		"DateFrom" => "Date",
		"DateTo" => "Date"
	);
	
	static $has_one = array(
		'Cabin' => 'Cabin',
	);

	public function getCMSFields_forPopup() {
		$fields = self::getFormFields();
		
		return $fields;
	}
	
	static public function getFormFields() {
		$fieldset = new FieldSet(
			new CalendarPickerField('DateFrom','von *'),
			new CalendarPickerField('DateTo','bis')
		);
		return $fieldset;
	}
	
}
?>